/*
 * Main.fx
 *
 * Created on 11.09.2009, 19:34:03
 */

package javafx179labs.stepanov.lab1;

import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.shape.Rectangle;
import javafx.scene.paint.Color;
import javafx.scene.shape.Line;
import javafx.scene.shape.Polygon;
import javafx.scene.shape.Circle;
import javafx.scene.effect.Reflection;
import javafx.scene.transform.Rotate;
import javafx.scene.text.Text;
import javafx.scene.text.Font;
import javafx.scene.effect.GaussianBlur;
import javafx.scene.shape.Ellipse;
import javafx.scene.effect.MotionBlur;
import javafx.scene.effect.Lighting;


/**
 * @author Евгений
 */

Stage {
    title: "Application title"
    width: 1024
    height: 768
    scene: Scene {
        content: [
                                Rectangle {
                        x: 0, y: 0
                        width: 1024, height: 768
                        fill: Color.BLUE
                       
                }
                                Rectangle {
                        x: 0, y: 0
                        width: 1024, height: 384
                        fill: Color.CYAN
      
                }
                                Polygon {
                        points : [ 400,384, 360,300, 640,300, 600,384]
                        fill: Color.LIGHTGRAY
                        effect: Reflection {
                                fraction: 0.75
                                topOffset: 0.0
                                topOpacity: 0.5
                                bottomOpacity: 0.0
                        }





                }
                                Rectangle {
                        x: 450, y: 220
                        width: 150, height: 80
                        fill: Color.WHITE
                        effect:MotionBlur {
                                        angle: 0
                                        radius: 10
                                }





 
            

                }
                                Circle {
                        centerX: 500, centerY: 260
                        radius: 20
                        fill: Color.BLUE
                        effect: Lighting {
                                        diffuseConstant: 1.0
                                        specularConstant: 1.0
                                        specularExponent: 20
                                        surfaceScale: 1.5
                                }






                }
                                 Circle {
                        centerX: 540, centerY: 260
                        radius: 10
                        fill: Color.BLUE
                        effect: Lighting {
                                        diffuseConstant: 1.0
                                        specularConstant: 1.0
                                        specularExponent: 20
                                        surfaceScale: 1.5
                                }
                        
                }
                              Circle {
                        centerX: 567, centerY: 260
                        radius: 6
                        fill: Color.BLUE
                        effect: Lighting {
                                        diffuseConstant: 1.0
                                        specularConstant: 1.0
                                        specularExponent: 20
                                        surfaceScale: 1.5
                                }
                       
                }
                                Polygon {
                        points : [ 400,384, 395,374, 605,374, 600,384]
                        fill: Color.RED
                        effect: Reflection {
                                fraction: 0.95
                                topOffset: 0.0
                                topOpacity: 0.8
                                bottomOpacity: 0.0
                        }
                }

                
                                Text {
                        font : Font {
                                size: 24
                        }
                        x: 402, y: 372
                        content: "Titanic"
                        effect: Reflection {
                                fraction: 0.75
                                topOffset: 20.0
                                topOpacity: 0.5
                                bottomOpacity: 0.0
                        }
                }



                Polygon {
                        points : [ 200,384, 220,275, 235,326,250,282,280,384 ]
                        fill: Color.WHITE
                        effect: Reflection {
                                fraction: 0.75
                                topOffset: 0.0
                                topOpacity: 0.5
                                bottomOpacity: 0.0
                        }
                }




                                Circle {
                        centerX: 850, centerY: 120
                        radius: 60
                        fill: Color.YELLOW
                        effect: GaussianBlur {
                                        radius: 25
                                }






                }
                                Line {
                        startX: 700, startY: 120
                        endX: 1000, endY: 120
                        strokeWidth: 6
                        stroke: Color.YELLOW
                        effect: GaussianBlur {
                                        radius: 5
                                }
                }
                                                Line {
                        startX: 700, startY: 120
                        endX: 1000, endY: 120
                        strokeWidth: 6
                        stroke: Color.YELLOW
                        effect: GaussianBlur {
                                        radius: 5
                                }
                        transforms: Rotate { pivotX : 850.0, pivotY : 120.0, angle: 22.5 }

                }
                                                               Line {
                        startX: 700, startY: 120
                        endX: 1000, endY: 120
                        strokeWidth: 6
                        stroke: Color.YELLOW
                        effect: GaussianBlur {
                                        radius: 5
                                }
                        transforms: Rotate { pivotX : 850.0, pivotY : 120.0, angle: 45 }

                }
                                                               Line {
                        startX: 700, startY: 120
                        endX: 1000, endY: 120
                        strokeWidth: 6
                        stroke: Color.YELLOW
                        effect: GaussianBlur {
                                        radius: 5
                                }
                        transforms: Rotate { pivotX : 850.0, pivotY : 120.0, angle: 67.5 }

                }
                                                               Line {
                        startX: 700, startY: 120
                        endX: 1000, endY: 120
                        strokeWidth: 6
                        stroke: Color.YELLOW
                        effect: GaussianBlur {
                                        radius: 5
                                }
                        transforms: Rotate { pivotX : 850.0, pivotY : 120.0, angle: 90 }

                }
                                                               Line {
                        startX: 700, startY: 120
                        endX: 1000, endY: 120
                        strokeWidth: 6
                        stroke: Color.YELLOW
                        effect: GaussianBlur {
                                        radius: 5
                                }
                        transforms: Rotate { pivotX : 850.0, pivotY : 120.0, angle: 112.5 }

                }
                                                               Line {
                        startX: 700, startY: 120
                        endX: 1000, endY: 120
                        strokeWidth: 6
                        stroke: Color.YELLOW
                        effect: GaussianBlur {
                                        radius: 5
                                }
                        transforms: Rotate { pivotX : 850.0, pivotY : 120.0, angle: 135.0 }

                }
                                                               Line {
                        startX: 700, startY: 120
                        endX: 1000, endY: 120
                        strokeWidth: 6
                        stroke: Color.YELLOW
                        effect: GaussianBlur {
                                        radius: 5
                                }
                        transforms: Rotate { pivotX : 850.0, pivotY : 120.0, angle: 157.5 }

                }
                                Ellipse {
                        centerX: 200, centerY: 100
                        radiusX: 120, radiusY: 35
                        fill: Color.WHITE
                        effect: GaussianBlur {
                                        radius: 5
                                }

                }
                                                Ellipse {
                        centerX: 260, centerY: 130
                        radiusX: 60, radiusY: 15
                        fill: Color.WHITE
                        effect: GaussianBlur {
                                        radius: 5
                                }


}
            Rectangle {
        x: 572, y: 196
        width: 20, height: 24
        fill: Color.BLACK
}
Circle {
        centerX: 582, centerY: 182
        radius: 16
        fill: Color.WHITE
        effect: GaussianBlur {
                                        radius: 12
                                }
}
Circle {
        centerX: 597, centerY: 162
        radius: 18
        fill: Color.WHITE
        effect: GaussianBlur {
                                        radius: 12
                                }
}
Circle {
        centerX: 617, centerY: 152
        radius: 14
        fill: Color.WHITE
        effect: GaussianBlur {
                                        radius: 12
                                }
}









                ]
    }
}